package com.evan.demo;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

//装载配置的Gril项
@ConfigurationProperties(prefix = "Girl")
//把普通pojo实例化到spring容器中，相当于配置文件中的<bean id="" class=""/>）
@Component
public class GirlProperties {
    private String cupSize;
    private Integer age;

    public String getCupSize() {
        return cupSize;
    }

    public void setCupSize(String cupSize) {
        this.cupSize = cupSize;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
